//
//  AddContactCell.h
//
//  Created by Olof Millberg on 2010-04-06.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AddressBookUI/AddressBookUI.h>

#import "WOPerson.h"


@protocol WOPeoplePickerDelegate;

@interface AddContactCell : UITableViewCell <ABPeoplePickerNavigationControllerDelegate>
{
	UIButton* addContactButton;
	id<WOPeoplePickerDelegate> delegate;
	UIViewController *viewController;
}
@property (nonatomic, retain) IBOutlet UIButton* addContactButton;
@property (nonatomic, assign) id<WOPeoplePickerDelegate> delegate;
@property (nonatomic, retain) UIViewController *viewController;

- (IBAction) addContact:(id)sender;
- (void) navigationController:(UINavigationController *)navigationController 
		didShowViewController:(UIViewController *)viewController 
					 animated:(BOOL)animated;
@end

@protocol WOPeoplePickerDelegate
- (void) addContactCell:(AddContactCell*)addContactCell didSelectPerson:(WOPerson *)person;
@end